<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>鑫四合珠宝管理后台登录页</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="huyuzhu">
<!-- Le styles -->
<link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/singin.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap-modal.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<script type="text/javascript">
$(document).ready(function(){
	if($.browser.msie&&($.browser.version==6.0)&&!$.support.style){
		$("#browserModal").show();
		}
	});
function doLogin(){
	var name = $.trim($("#adminName").val());
	alert("==");
	if(name==""){
		$("#ErrorMsg").html("请输入登录名!");
		return false;
	}
	var passwd = $.trim($("#adminPassword").val());
	if(passwd==""){
		$("#ErrorMsg").html("请输入登录密码!");
		return false;
	}
	return true;
	//$("#loginForm").submit();
}
</script>
</head>
<body>
<div class="container">
  <h1>鑫四合珠宝</h1>
  <s:form cssClass="form-signin" onsubmit="return doLogin()" action="doLogin" d="loginForm" namespace="/"> <!--管理员首页-->
    <span>登录名：</span>
    <s:textfield id="adminName" name="userVO.loginid" value="hexx" cssClass="input-block-level inputBox"/>
    <span>登录密码：</span>
    <s:password id="adminPassword" name="userVO.passwd" cssClass="input-block-level inputBox"/>
    <input type="submit" class="btn btn-warning btn-large" value="登录"/>
    <span id="ErrorMsg"  class="help-inline tred"><s:property value="message"/></span>
  </s:form>
  
</div>
<!-- /container -->
<s:include value="bottom.jsp"/>
<!-- Le javascript
    ================================================== --> 
<!-- Placed at the end of the document so the pages load faster -->
<div class="hide" id="browserModal">
  <h3>您使用的是IE6浏览器！！！</h3>
  <p>由于本系统采用的是最新的html5代码和css3样式表，因此在老版本的IE浏览器上不兼容。</p>
  <p class="tred">建议使用IE9，firefox，google Chrome等高版本浏览器，使系统达到最佳使用效果。</p>
  <dl>
      <dt>为了适应WEB新时代的到来，建议下载更新您的浏览器。<br>下载地址如下：</dt>
      <dd>IE9: <a href="http://windows.microsoft.com/zh-CN/internet-explorer/download-ie" target="_blank">下载更新</a></dd>
      <dd>firefox: <a href="http://firefox.com.cn/" target="_blank">下载更新</a></dd>
      <dd>google Chrome: <a href="https://www.google.com/intl/zh-CN/chrome/browser/?hl=zh-CN&brand=CHMI" target="_blank">下载更新</a></dd>
  </dl>
</div>
</body>
</html>